﻿using System.ComponentModel.DataAnnotations;

namespace SRM.WebSite.Models.Account
{
    public class ChangePasswordViewModel
    {
        [Required(ErrorMessage = "当前密码不能为空！")]
        [DataType(DataType.Password)]
        [Display(Name = "当前密码：")]
        public string CurrentPasswoed { get; set; }

        [Required(ErrorMessage = "新密码不能为空！")]
        [DataType(DataType.Password)]
        [Display(Name = "新密码：")]
        public string NewPasswoed { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "确认新密码：")]
        [Compare("NewPasswoed", ErrorMessage = "新密码和确认密码不匹配")]
        public string ConfirmPasswoed { get; set; }
    }
}
